import math
import cmath
def formatComplex(x):
    return "{0.real:.4f}{0.imag:+.4f}j".format(x)

def PTB2():
    a = int(raw_input("Nhap a: "))
    b = int(raw_input("Nhap b: "))
    c = int(raw_input("Nhap c: "))
    if(a != 0):
        delta = b**2.0 - 4.0*a*c
        if(delta < 0):
            j = complex(0,1)
            x1 = formatComplex((-b+cmath.sqrt(delta)) / (2.0*a))
            x2 = formatComplex((-b-cmath.sqrt(delta)) / (2.0*a))
            print x1,x2
        else:
            x1 = (-b+math.sqrt(delta))/(2.0*a)
            x2 = (-b-math.sqrt(delta))/(2.0*a)
            print "{0:0.4f} {1:0.4f}".format(x1,x2)

